<template>
  <el-radio-group v-model="params">
    <el-radio v-bind="$attrs" v-for="item in $attrs.options" :key="item.value" :label="item[valueName]">{{
      item[labelName] }}</el-radio>
  </el-radio-group>
</template>
<script>
import Mixin from "./mixin"
export default {
  name: "Radio",
  mixins: [Mixin],
  data() {
    return {}
  },
  computed: {
    valueName() {
      return this.$attrs.valuesType ? this.$attrs.valuesType.value : 'value'
    },
    labelName() {
      return this.$attrs.valuesType ? this.$attrs.valuesType.label : 'label'
    }
  }
}
</script>
<style lang="scss"></style>
